import $http from './index.js'


export const getData = $http.get('https://jsonplaceholder.typicode.com/posts')

export const login =(data) =>{
    return $http.get('https://jsonplaceholder.typicode.com/posts',data)
}
                    /*打包要用完整信息，不可以使用代理api*/ 
                // 使用本地api代理需要重新npm install serve
                //api/home/index/qd
                //https://search.cctsk2109.cn/home/index/qd
export const login1 =(data) =>{
    return $http.post('http://search2.cctsk2109.cn/home/login/login',data)
}


export const woven =(from) =>{
    return $http.post('http://search2.cctsk2109.cn/home/index/qd',from)
}

export const test =() =>{
    return $http.post('api/home/test/index')
}